package top.ffhome.system.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Getter;
import lombok.Setter;
import top.ffhome.common.entity.IdEntity;

/** 登录日志表 */
public class SysLoginLog extends IdEntity {
	private static final long serialVersionUID = 1L;

	/** 人员ID */
	@Getter
	@Setter
	private Long userId;
	/** 登录时间 */
	@Getter
	@Setter
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date loginTime;
	/** IP地址 */
	@Getter
	@Setter
	private String ip;
	/** 浏览器类型 */
	@Getter
	@Setter
	private String browser;
	/** 操作系统 */
	@Getter
	@Setter
	private String os;

	/** 人员名称 */
	@Getter
	@Setter
	private String userName;
	/** 人员账号 */
	@Getter
	@Setter
	private String account;

	public SysLoginLog() {
	}

	public SysLoginLog(Long userId, String ip, String browser, String os) {
		this.userId = userId;
		this.ip = ip;
		this.browser = browser;
		this.os = os;
	}
}
